<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxTriangleMeshDesc Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classPxTriangleMeshDesc.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classPxTriangleMeshDesc-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">PxTriangleMeshDesc Class Reference<div class="ingroups"><a class="el" href="group__cooking.html">Cooking</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Descriptor class for <a class="el" href="classPxTriangleMesh.html" title="A triangle mesh, also called a &#39;polygon soup&#39;. ">PxTriangleMesh</a>.  
 <a href="classPxTriangleMeshDesc.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="PxTriangleMeshDesc_8h_source.html">PxTriangleMeshDesc.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for PxTriangleMeshDesc:</div>
<div class="dyncontent">
<div class="center"><img src="classPxTriangleMeshDesc__inherit__graph.png" border="0" usemap="#PxTriangleMeshDesc_inherit__map" alt="Inheritance graph"/></div>
<map name="PxTriangleMeshDesc_inherit__map" id="PxTriangleMeshDesc_inherit__map">
<area shape="rect" id="node2" href="classPxSimpleTriangleMesh.html" title="A structure describing a triangle mesh. " alt="" coords="5,5,160,32"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for PxTriangleMeshDesc:</div>
<div class="dyncontent">
<div class="center"><img src="classPxTriangleMeshDesc__coll__graph.png" border="0" usemap="#PxTriangleMeshDesc_coll__map" alt="Collaboration graph"/></div>
<map name="PxTriangleMeshDesc_coll__map" id="PxTriangleMeshDesc_coll__map">
<area shape="rect" id="node2" href="classPxSimpleTriangleMesh.html" title="A structure describing a triangle mesh. " alt="" coords="36,207,191,234"/>
<area shape="rect" id="node3" href="classPxFlags.html" title="PxFlags\&lt; PxMeshFlag\l::Enum, PxU16 \&gt;" alt="" coords="5,81,160,123"/>
<area shape="rect" id="node4" href="structPxBoundedData.html" title="PxBoundedData" alt="" coords="185,89,301,115"/>
<area shape="rect" id="node5" href="structPxStridedData.html" title="PxStridedData" alt="" coords="189,5,296,32"/>
<area shape="rect" id="node6" href="structPxTypedStridedData.html" title="PxTypedStridedData\l\&lt; PxMaterialTableIndex \&gt;" alt="" coords="215,200,385,241"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ga15d3050ac143dfb67ad43a8682c7b569"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cooking.html#ga15d3050ac143dfb67ad43a8682c7b569">PxTriangleMeshDesc</a> ()</td></tr>
<tr class="memdesc:ga15d3050ac143dfb67ad43a8682c7b569"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor sets to default.  <a href="group__cooking.html#ga15d3050ac143dfb67ad43a8682c7b569">More...</a><br /></td></tr>
<tr class="separator:ga15d3050ac143dfb67ad43a8682c7b569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafd882da42844238f9a91e5754694391e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cooking.html#gafd882da42844238f9a91e5754694391e">setToDefault</a> ()</td></tr>
<tr class="memdesc:gafd882da42844238f9a91e5754694391e"><td class="mdescLeft">&#160;</td><td class="mdescRight">(re)sets the structure to the default.  <a href="group__cooking.html#gafd882da42844238f9a91e5754694391e">More...</a><br /></td></tr>
<tr class="separator:gafd882da42844238f9a91e5754694391e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga59f5c9eccaa06ab91f827e10e7a1333a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cooking.html#ga59f5c9eccaa06ab91f827e10e7a1333a">isValid</a> () const</td></tr>
<tr class="memdesc:ga59f5c9eccaa06ab91f827e10e7a1333a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the descriptor is valid.  <a href="group__cooking.html#ga59f5c9eccaa06ab91f827e10e7a1333a">More...</a><br /></td></tr>
<tr class="separator:ga59f5c9eccaa06ab91f827e10e7a1333a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classPxSimpleTriangleMesh"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classPxSimpleTriangleMesh')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classPxSimpleTriangleMesh.html">PxSimpleTriangleMesh</a></td></tr>
<tr class="memitem:ga9acd5763a76bcf9f41b42c3a30a6421a inherit pub_methods_classPxSimpleTriangleMesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__geomutils.html#ga9acd5763a76bcf9f41b42c3a30a6421a">PxSimpleTriangleMesh</a> ()</td></tr>
<tr class="memdesc:ga9acd5763a76bcf9f41b42c3a30a6421a inherit pub_methods_classPxSimpleTriangleMesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor sets to default.  <a href="group__geomutils.html#ga9acd5763a76bcf9f41b42c3a30a6421a">More...</a><br /></td></tr>
<tr class="separator:ga9acd5763a76bcf9f41b42c3a30a6421a inherit pub_methods_classPxSimpleTriangleMesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad6110ba2e5505fb809d3c3ebeb82e2f5 inherit pub_methods_classPxSimpleTriangleMesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__geomutils.html#gad6110ba2e5505fb809d3c3ebeb82e2f5">setToDefault</a> ()</td></tr>
<tr class="memdesc:gad6110ba2e5505fb809d3c3ebeb82e2f5 inherit pub_methods_classPxSimpleTriangleMesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">(re)sets the structure to the default.  <a href="group__geomutils.html#gad6110ba2e5505fb809d3c3ebeb82e2f5">More...</a><br /></td></tr>
<tr class="separator:gad6110ba2e5505fb809d3c3ebeb82e2f5 inherit pub_methods_classPxSimpleTriangleMesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3e3459b35f199b24a6f8e070170a9815 inherit pub_methods_classPxSimpleTriangleMesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__geomutils.html#ga3e3459b35f199b24a6f8e070170a9815">isValid</a> () const</td></tr>
<tr class="memdesc:ga3e3459b35f199b24a6f8e070170a9815 inherit pub_methods_classPxSimpleTriangleMesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns true if the current settings are valid  <a href="group__geomutils.html#ga3e3459b35f199b24a6f8e070170a9815">More...</a><br /></td></tr>
<tr class="separator:ga3e3459b35f199b24a6f8e070170a9815 inherit pub_methods_classPxSimpleTriangleMesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a138ca14d6cad6d86484c8ecd9f96d46f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structPxTypedStridedData.html">PxTypedStridedData</a>&lt; <a class="el" href="group__common.html#gac816bc62a68a52f01bf21f963295e822">PxMaterialTableIndex</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxTriangleMeshDesc.html#a138ca14d6cad6d86484c8ecd9f96d46f">materialIndices</a></td></tr>
<tr class="separator:a138ca14d6cad6d86484c8ecd9f96d46f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classPxSimpleTriangleMesh"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classPxSimpleTriangleMesh')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classPxSimpleTriangleMesh.html">PxSimpleTriangleMesh</a></td></tr>
<tr class="memitem:afdeb26b7e3d491fbe041f4bc119e22af inherit pub_attribs_classPxSimpleTriangleMesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structPxBoundedData.html">PxBoundedData</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxSimpleTriangleMesh.html#afdeb26b7e3d491fbe041f4bc119e22af">points</a></td></tr>
<tr class="memdesc:afdeb26b7e3d491fbe041f4bc119e22af inherit pub_attribs_classPxSimpleTriangleMesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to first vertex point.  <a href="classPxSimpleTriangleMesh.html#afdeb26b7e3d491fbe041f4bc119e22af">More...</a><br /></td></tr>
<tr class="separator:afdeb26b7e3d491fbe041f4bc119e22af inherit pub_attribs_classPxSimpleTriangleMesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b39b2bb65a9f246eaa1848e881cf988 inherit pub_attribs_classPxSimpleTriangleMesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structPxBoundedData.html">PxBoundedData</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxSimpleTriangleMesh.html#a1b39b2bb65a9f246eaa1848e881cf988">triangles</a></td></tr>
<tr class="memdesc:a1b39b2bb65a9f246eaa1848e881cf988 inherit pub_attribs_classPxSimpleTriangleMesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to first triangle.  <a href="classPxSimpleTriangleMesh.html#a1b39b2bb65a9f246eaa1848e881cf988">More...</a><br /></td></tr>
<tr class="separator:a1b39b2bb65a9f246eaa1848e881cf988 inherit pub_attribs_classPxSimpleTriangleMesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a765848d06b09a3452f9923115d5ccdd0 inherit pub_attribs_classPxSimpleTriangleMesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__geomutils.html#gaec23462a84179db8a8ea77e5115d5fb1">PxMeshFlags</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxSimpleTriangleMesh.html#a765848d06b09a3452f9923115d5ccdd0">flags</a></td></tr>
<tr class="memdesc:a765848d06b09a3452f9923115d5ccdd0 inherit pub_attribs_classPxSimpleTriangleMesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flags bits, combined from values of the enum <a class="el" href="structPxMeshFlag.html" title="Enum with flag values to be used in PxSimpleTriangleMesh::flags. ">PxMeshFlag</a>.  <a href="classPxSimpleTriangleMesh.html#a765848d06b09a3452f9923115d5ccdd0">More...</a><br /></td></tr>
<tr class="separator:a765848d06b09a3452f9923115d5ccdd0 inherit pub_attribs_classPxSimpleTriangleMesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Descriptor class for <a class="el" href="classPxTriangleMesh.html" title="A triangle mesh, also called a &#39;polygon soup&#39;. ">PxTriangleMesh</a>. </p>
<p>Note that this class is derived from <a class="el" href="classPxSimpleTriangleMesh.html" title="A structure describing a triangle mesh. ">PxSimpleTriangleMesh</a> which contains the members that describe the basic mesh. The mesh data is *copied* when an <a class="el" href="classPxTriangleMesh.html" title="A triangle mesh, also called a &#39;polygon soup&#39;. ">PxTriangleMesh</a> object is created from this descriptor. After the call the user may discard the triangle data.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxTriangleMesh.html" title="A triangle mesh, also called a &#39;polygon soup&#39;. ">PxTriangleMesh</a> <a class="el" href="classPxTriangleMeshGeometry.html" title="Triangle mesh geometry class. ">PxTriangleMeshGeometry</a> <a class="el" href="classPxShape.html" title="Abstract class for collision shapes. ">PxShape</a> </dd></dl>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="a138ca14d6cad6d86484c8ecd9f96d46f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a138ca14d6cad6d86484c8ecd9f96d46f">&#9670;&nbsp;</a></span>materialIndices</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structPxTypedStridedData.html">PxTypedStridedData</a>&lt;<a class="el" href="group__common.html#gac816bc62a68a52f01bf21f963295e822">PxMaterialTableIndex</a>&gt; PxTriangleMeshDesc::materialIndices</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Optional pointer to first material index, or NULL. There are PxSimpleTriangleMesh::numTriangles indices in total. Caller may add materialIndexStride bytes to the pointer to access the next triangle.</p>
<p>When a triangle mesh collides with another object, a material is required at the collision point. If materialIndices is NULL, then the material of the <a class="el" href="classPxShape.html" title="Abstract class for collision shapes. ">PxShape</a> instance is used. Otherwise, if the point of contact is on a triangle with index i, then the material index is determined as: PxMaterialTableIndex index = *(PxMaterialTableIndex *)(((PxU8*)materialIndices) + materialIndexStride * i);</p>
<p>If the contact point falls on a vertex or an edge, a triangle adjacent to the vertex or edge is selected, and its index used to look up a material. The selection is arbitrary but consistent over time.</p>
<p><b>Default:</b> NULL</p>
<dl class="section see"><dt>See also</dt><dd>materialIndexStride </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="PxTriangleMeshDesc_8h_source.html">PxTriangleMeshDesc.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classPxTriangleMeshDesc.html">PxTriangleMeshDesc</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
